﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA_ORM
{
    /// <summary>
    /// Représente le mapping pour un classe donnée.
    /// </summary>
    public class ClassMapping
    {
        private IDictionary<string, PropertyMapping> _properties;


        /// <summary>
        /// ctor
        /// </summary>
        public ClassMapping()
        {
            // On instancie le dico de properties..
            _properties = new Dictionary<string, PropertyMapping>();
        }


        /// <summary>
        /// Gets the properties.
        /// </summary>
        public IDictionary<string, PropertyMapping> Properties
        {
            get { return _properties; }
        }
        
        /// <summary>
        /// Gets or sets the name of the class.
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// Gets or sets the name of the table.
        /// </summary>
        public string TableName { get; set; }
    }
}
